<?php
    header('Content-Type:text/html;charset=utf-8');
    $db=new mysqli("localhost",'root','',"db_emp",3306);
    if ($db->connect_error)
    {
        die("连接失败,失败的原因是".$db->connect_error);
    }
    echo "连接成功！";

    $db->query("set names utf8");


